package oop6;

/**
 * @author oldliu
 * @since 1.0
 */
public class Dog {
    //名字和颜色
    private String name;
    private String color;
    //腿的数目
    public static int legs=4;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
    public void show(){
        System.out.println("这只狗叫"+name+",毛色是"+color);
        System.out.println("有"+legs+"条腿");
    }
}
